#ifndef MAPPERCNROM_H
#define MAPPERCNROM_H

#include "Mapper.h"

PNE_NAMESPACE_BEGIN

struct MapperCNROM: public Mapper
{
    MapperCNROM(Cartridge& cart);
    void WritePRG(Address addr, Byte value) override;
    Byte ReadPRG(Address addr) override;

    Byte ReadCHR(Address addr) override;
    void WriteCHR(Address addr, Byte value) override;
    private:
    bool m_oneBank;
    Address m_selectCHR;
};

PNE_NAMESPACE_END

#endif // MAPPERCNROM_H
// DONE